<div class="action-dialog-model-fixed-body">  
<div class="detailsBox">
	<div class="detaiTab">
			<form  action="<@url value='/rProcessAuth/save'/>"  method="post" id="rProcessAuth" class="action-ajax-form" >
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tr>
							<td class="bg" align="right" width="15%">流程大类:</td>
						     <td>
								<select name="processMainCode" id="processMain" style="width:150px;" class="tabInp action-valid-field"
									data-action-valid-rule="required;"
									data-action-valid-msg-required="流程大类不能为空!">
									<option value="">--请选择--</option>
									<#list catagoryList as catagory>
										<option value="${catagory.code}">${catagory.name}</option>
									</#list>
								</select>
								<span><font color="red">*</font></span> 
								<span class="action-field-error" for="processMain" style="color: red;"></span>
						    </td>
					    </tr>
						<tr>
							<td class="bg" align="right" width="15%">流程类型:</td>
						    <td>
								<select name="processLessCode" id="processLess" style="width:150px;" class="tabInp action-valid-field"
									data-action-valid-rule="required"
									data-action-valid-msg-required="流程类型不能为空!">
									<option value="">--请选择--</option>
									<#list processTypeList as processType>
										<option value="${processType.code}">${processType.name}</option>
									</#list>
								</select>
								<span><font color="red">*</font></span> 
								<span class="action-field-error" for="processLess" style="color: red;"></span>
						    </td>
				        </tr>
				        <tr>
							<td class="bg" align="right" width="15%">转出人:</td>
						    <td>
						    	<@autocomplete url="/rProcessAuth/outor?rollOuterName=" value="" name ="rollOuterName" hideIdName="rollOuterCode"/>(联想)
								<span style="color: red;">*</span> 
								<span id="referrerNoErorr" style="color: red;"></span>
						    </td>
				        </tr>
				        <tr>
							<td class="bg" align="right" width="15%">转入人:</td>
						    <td>
								<@autocomplete url="/rProcessAuth/inor?rollInerName=" value="" name="rollInerName"  hideIdName="rollInerCode"/>(联想)
								<span style="color: red;">*</span> 
								<span id="referrerNoErorr" style="color: red;"></span>
						    </td>
				        </tr>
				        <tr>
				        	<td class="bg" align="right" width="15%">授权开始时间:</td>
						    <td>
								<@date type="datetime" value="" data\-action\-valid\-rule="required;"
								data\-action\-valid\-msg\-required="授权开始时间不能为空！"
								id="authBeginDate" name="authBeginDate" />
								<span><font color="red">*</font></span>
								<span class="action-field-error" for="authBeginDate" style="color: red;"></span> 
						    </td>
				         </tr>
				         <tr>
							<td class="bg" align="right" width="15%">授权结束时间:</td>
						    <td>
								<@date type="datetime" value="" data\-action\-valid\-rule="required;"
									data\-action\-valid\-msg\-required="授权结束时间不能为空！"
									id="authEndDate" name="authEndDate" />
									<span><font color="red">*</font></span>
									<span class="action-field-error" for="authEndDate" style="color: red;"></span> 
						    </td>
				        </tr>
				        <tr>
							<td class="bg" align="right" width="15%">是否生效:</td>
						    <td>
								<@select dataSouceType="process_auth_status" name="authStatus" value="" id="authStatus"
									class="tabInp action-valid-field"
									data\-action\-valid\-rule="required;"
									data\-action\-valid\-msg\-required="生效状态不能为空"/> 
									<span><font color="red">*</font></span> 
									<span class="action-field-error" for="authStatus" style="color: red;"></span>
						    </td>
				        </tr>
				         <tr>
							<td class="bg" align="center" width="15%" colspan="2">
								<input type="submit" value="保存" class="btn_auto_30 btn_blue" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							</td>
				        </tr>
				    </table>
				</form>
		</div>
	</div>
</div>
<@js>
	(function(){
		$("#processMain").change(function(){
			var catagory = $.trim($("#processMain").val());
			if(catagory.length > 0){
				$.ajax({
		            type:"GET",
		            url:"/rProcessAuth/getProccessType",
		            data:{"catagory":catagory},
		            datatype:"json",
		            success:function(data){
		            	var processTypeHtml = new Array('<option value="">--请选择--</option>');
		           		$.each(data.data, function(i, item){  
		           			   processTypeHtml.push('<option value="'+item.code+'">'+item.name+'</option>'); 
					　　	});
						var processTypeObj = $("#processLess");
						processTypeObj.empty();
						processTypeObj.html(processTypeHtml.join(''));
		            }       
     			});
			}else{
				var processTypeHtml = new Array('<option value="">--请选择--</option>');
				var processTypeObj = $("#processLess");
				processTypeObj.empty();
				processTypeObj.html(processTypeHtml.join(''));
			}
		});
	})();
	
	
	
	
	
</@js>
<@jsRender/>